import axiosInstance from "../axiosInstance";


const userInfo = {
    /**
     * 分页查询用户信息
     * @param {{ pageIndex, nickName, user_phone, user_sex }} param0 
     * @returns {Promise<Object>}
     */
    getListByPage({ pageIndex, nickName, user_phone, user_sex }) {
        return axiosInstance.get("/userInfo/getListByPage", {
            params: {
                pageIndex, nickName, user_phone, user_sex
            }
        })
    },
    /**
     * 根据id删除用户
     * @param {id} param0 
     * @returns {Promise<Object>}
     */
    deleteById(id){
        return axiosInstance.get("/userInfo/deleteById",{
            params:{
                id
            }
        })
    }

}

export default userInfo;